package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.Dict;
import com.weixing.mall.provider.model.query.SysDictQuery;
import com.weixing.mall.provider.model.vo.sys.SysDictFormVo;
import com.weixing.mall.provider.api.model.vo.SysDictVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 数据字典表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface DictMapper extends BaseMapper<Dict> {

    IPage<SysDictVo> selectOfPage(@Param("pg") Page page,@Param("qs") SysDictQuery sysDictQuery);

    List<SysDictFormVo> selectDictFormVoList(@Param("qs") SysDictQuery sysDictQuery);

    List<SysDictVo> getDictByCode(@Param("dictGroupCode") String dictGroupCode);
}
